package com.hancher.gamelife2.function;

import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.Index;
import androidx.room.PrimaryKey;

import com.hancher.common.javautil.UuidUtil;

import lombok.Data;

/**
 * 描述 : 数据库实体类 <br/>
 * 时间 : 2023/12/2 11:48 <br/>
 * 作者 : Hancher ytu_shaoweijie@163.com
 */
@Entity(tableName = "function", indices = {@Index(value = "md5", unique = true)})
@Data
public class FunctionPO {

    @PrimaryKey
    Long id;
    String uuid = UuidUtil.getUuidNoLine();
    Long createTime = System.currentTimeMillis();
    Long updateTime = System.currentTimeMillis();
    Byte deleteflag = 0;

    Long clickCount = 1L;
    String tag = "";
    String title;
    String category;
    String md5;

    //布局部分，不需要添加到数据库
    @Ignore
    int drawable;
    @Ignore
    int action;
    @Ignore
    int clickSort;
    @Ignore
    int recentSort;
}
